<template>
  <view class="order-section">
    <view class="order-section__header">
      <text class="order-section__title">{{ title }}</text>
      <slot name="action"></slot>
    </view>
    <view class="order-section__content">
      <slot></slot>
    </view>
  </view>
</template>

<script setup>
import { defineProps } from 'vue';

defineProps({
  title: {
    type: String,
    default: ''
  }
});
</script>

<style lang="scss" scoped>
.order-section {
  background-color: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  
  &__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  &__title {
    font-size: 15px;
    font-weight: bold;
    color: #333;
  }
  
  &__content {
    font-size: 14px;
    color: #333;
  }
}
</style>
